package edu.sias.pojo;

public class Post {
    //主键

    private int id;

//标题

    private String title;

//内容

    private String text;

//点击量

    private Integer click;

//访问地址

    private String url;

    public Post() {

    }

    public Post(int id, String title, String text, Integer click, String url) {

        this.id = id;

        this.title = title;

        this.text = text;

        this.click = click;

        this.url = url;

    }

    public int getId() {

        return id;

    }

    public void setId(int id) {

        this.id = id;

    }

    public String getTitle() {

        return title;

    }

    public void setTitle(String title) {

        this.title = title;

    }

    public String getText() {

        return text;

    }

    public void setText(String text) {

        this.text = text;

    }

    public Integer getClick() {

        return click;

    }

    public void setClick(Integer click) {

        this.click = click;

    }

    public String getUrl() {

        return url;

    }

    public void setUrl(String url) {

        this.url = url;

    }

    @Override

    public String toString() {

        return "Post{" +

                "id=" + id +

                ", title='" + title + '\'' +

                ", text='" + text + '\'' +

                ", click=" + click +

                ", url='" + url + '\'' +

                '}';

    }

}

